home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Easy Internet
/
Internet Training Corporation Easy Internet Rev21 (ITC).ISO
/
pc
/
data
/
1009.scp
< prev
next >
Wrap
Text File
|
1997-05-01
|
926b
|
81 lines
proc main
integer nTries = 3
string szLogin = "Username:"
integer nLoginTimeout = 3
string szPW = "Password:"
integer nPWTimeout = 3
string szPrompt = ".Net>"
string szConnect = "PPP^M"
boolean bUseSlip = FALSE
delay 2
transmit "^M^M"
while 0 < nTries do
waitfor szLogin then DoLogin
until nLoginTimeout
TryAgain:
transmit "^M" ; ping
nTries = nTries - 1
endwhile
goto BailOut
DoLogin:
transmit $USERID, raw
transmit "^M"
waitfor szPW until nPWTimeout
if FALSE == $SUCCESS then
goto TryAgain
endif
transmit $PASSWORD, raw
transmit "^M"
waitfor szPrompt
transmit szConnect
if bUseSlip then
set ipaddr getip 2
endif
goto Done
BailOut:
set screen keyboard on
halt
Done:
endproc